package com.jdbc.dataAccess.Oracle;

import com.jdbc.dataAccess.ConnectionSettings;
import com.jdbc.dataAccess.DBProcedure;
import com.jdbc.dataAccess.Database;
import com.jdbc.dataAccess.Oracle.Utilities.ConnectionHelper;

/******************************************************************************
 * 
 * @autor   robert.baron
 * @since       02-abr-2013
 * 
 *******************************************************************************/
public class OracleDatabase
        extends Database {
      
      public OracleDatabase(String connectionString) {
            super(connectionString);           
            this.connSettings = ConnectionHelper.getConnectionSettings(this.connectionString);
      }

      public OracleDatabase(ConnectionSettings connSettings) {
            super(connSettings);
            
            this.connectionString = ConnectionHelper.getConnectionString(connSettings);
            this.connSettings.setUrl(ConnectionHelper.getUrl(connSettings));            
      }
      
      public static DBProcedure  getStoreProcedure(String procedureName){
            return new DBProcedure(procedureName);
      }

      @Override
      public void executeProcedure(DBProcedure cmd) {
            throw new UnsupportedOperationException("Not supported yet.");
      }
}
